#include <stdio.h>

union Test
{
	unsigned short a;
	unsigned char b[2];
};

int main(void)
{
	union Test t;
	t.a = 3078; //   0000,1100,0000,0110
	printf("a=%d\n", t.a);
	printf("%d   %d\n", t.b[0], t.b[1]);
	//判断电脑是大端字节序，还是小端字节序?

	return 0;
}







